SetRate

General Operation Statement

Syntax samples

SETRATE <resource name>, <expression>, <unit #>

SETRATE Operator, 25, 3

Description

Allows you to define the regular rate of cost for resources contained in a model. If you have already defined the regular rate in the Cost module, this statement will override that rate. You can use SetRate to set different rates for each unit of a resource.

Valid In

Initialization logic.

Components

<resource name>

The name of the resource whose rate you wish to set.

<expression>

The rate assigned to the resource.

<unit #>

The unit number of the resource. Where multiple instances of a resource exist, you must specify which instance of the resource to use (e.g., Tech1, Tech2, Tech3, etc.). The keyword ALL may be used to indicate all instances of a resource.

Please note

SETRATE uses the time units defined for the model. (By default, SETRATE uses hours.)

Example

The logic below displays how you can uniquely assign the regular rate for each unit of a resource, Operator. Operator has three units, meaning that each unit can perform the same task. However, each of the three Operators has a different hourly rate. We set these rates in the Initialization logic using the following:

 

 

See Also

GETCOST, GETRESRATE(), INCENTCOST, INCLOCCOST, and INCRESCOST.